package com.itheima_test;

public class Test3 {
    public static void main(String[] args) {
        decToHex(999,Integer::toHexString);
    }
    private static void decToHex(int num ,NumberToString nts){
        String s = nts.convert(num);
        System.out.println(s);
    }
}
